﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="setting.aspx.cs" Inherits="Smy.Web.Plugin.Feedback.admin.setting" ValidateRequest="false" %>

<%@ Import Namespace="Smy.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>回复留言</title>
    <link href="../../../<%=siteConfig.webmanagepath %>/skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8" src="../../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../scripts/plupload/plupload.full.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../<%=siteConfig.webmanagepath %>/js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../<%=siteConfig.webmanagepath %>/js/common.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../ueditor/ueditor.all.js"></script>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();

            UE.getEditor('txtEmailContent', {
                serverUrl: "/tools/controller.ashx",
                UEDITOR_HOME_URL: '/ueditor/',
                initialFrameWidth: '100%',
                initialFrameHeight: 250,
                wordCount: false,
                toolbars: [['source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'fontborder', '|', 'customstyle', 'paragraph', 'fontfamily', 'fontsize', 'directionalityltr', 'directionalityrtl', 'indent', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'link', 'unlink', 'anchor', 'insertimage']],
                elementPathEnabled: false
            });
        });
    </script>
</head>
<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="index.aspx" class="back"><i></i><span>返回列表页</span></a>
            <a href="../../../<%=siteConfig.webmanagepath %>/center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>插件管理</span>
            <i class="arrow"></i>
            <span>在线留言</span>
            <i class="arrow"></i>
            <span>回复留言</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected" href="javascript:;">邮件设置</a></li>
                        <li><a href="javascript:;">短信设置</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>开启验证码：</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="validatestatus" runat="server" />
                    </div>
                    <span>开启后必须输入网页验证码才能提交。</span>
                </dd>
            </dl>
            <dl>
                <dt>开启邮件接收：</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="emailstatus" runat="server" />
                    </div>
                    <span>必须设置邮件发送功能以及开启发送邮件功能。</span>
                </dd>
            </dl>

            <dl>
                <dt>接收邮件账号：</dt>
                <dd>
                    <asp:TextBox runat="server" CssClass="input normal" datatype="e" ID="txtEmail" />
                    <span>客户提交留言信息时，会发送一封邮件到该账号里。</span>
                </dd>
            </dl>
            <dl>
                <dt>邮件标题：</dt>
                <dd>
                    <asp:TextBox runat="server" CssClass="input normal" datatype="*" ID="txtEmailTitle" />
                    <span>收到的邮件标题</span>
                </dd>
            </dl>
            <dl>
                <dt>邮件内容：</dt>
                <dd>
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="txtEmailContent"></asp:TextBox>
                    </dd>
                <dd><span>可用标签：</span></dd>
                <dd><span>网址：{weburl}</span></dd>
                <dd><span>用户名称：{username}</span></dd>
                <dd><span>用户电话：{usertel}</span></dd>
                <dd><span>用户QQ：{userqq}</span></dd>
                <dd><span>用户邮箱：{useremail}</span></dd>
                <dd><span>网站电话：{webtel}</span></dd>
                <dd><span>网站名称：{webname}</span></dd>
                <dd><span>时间：{yyyy-MM-dd HH:mm:ss}  {yyyy-MM-dd}</span></dd>
            </dl>

        </div>

        <div class="tab-content" style="display:none">
            <dl>
                <dt>开启短信接收：</dt>
                <dd>
                    <div class="rule-single-checkbox">
                        <asp:CheckBox ID="mobilestatus" runat="server" />
                    </div>
                    <span>必须设置邮件发送功能以及开启发送邮件功能。</span>
                </dd>
            </dl>
            <dl>
                <dt>接收短信手机号：</dt>
                <dd>
                    <asp:TextBox ID="txtMobile" runat="server" CssClass="input normal" datatype="m" />
                    <span>客户提交留言信息时，会发送一条提醒短信。</span>
                </dd>
            </dl>
            <dl>
                <dt>短信内容：</dt>
                <dd>
                    <asp:TextBox TextMode="MultiLine" runat="server" ID="txtMobileContent" CssClass="input" Height="100"></asp:TextBox>
                </dd>
                <dd>可用标签：{user_tel}<br />内容：{content}<br />QQ：{user_qq}<br />联系人：{user_name}<br />邮箱：{user_email}<br />签名：【{sign}】<br />签名必须填写，否则服务器会验证发送。</dd>
            </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="保存设置" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
